package com.czxy.Service;

import cn.itcast.commons.CommonUtils;
import com.czxy.dao.VideoUploadMapper;
import com.czxy.domain.Admin;
import com.czxy.domain.User;
import com.czxy.utils.MyBatisUtils;

public class FxService {
    public void updateDataBase(Admin user, String videoName, String videoInfo, String videoAddress){
        VideoUploadMapper mapper = MyBatisUtils.getMapper(VideoUploadMapper.class);
        mapper.insert(user.getUsername(),videoName,videoInfo,videoAddress,CommonUtils.uuid());
        MyBatisUtils.commitAndClose();
    }
}
